Skip to content

Conversation

aentinger
Copy link
Contributor

This fixes #230 .

This change can be verified by examining the verbose compilation output (-v) when compiling a sketch with (--optimize-for-debug) and without optimization for debug turned on.

arduino-cli compile -b arduino-git:renesas:unor4wifi -v MySketch --optimize-for-debug
arduino-cli compile -b arduino-git:renesas:unor4wifi -v MySketch

-Og provides "a reasonable level of optimization while maintaining fast compilation and a good debugging experience".
@aentinger aentinger added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 12, 2024
@aentinger aentinger requested a review from facchinm January 12, 2024 10:11
@aentinger aentinger self-assigned this Jan 12, 2024
@aentinger aentinger merged commit bba294b into main Jan 15, 2024
@aentinger aentinger deleted the fix-230 branch January 15, 2024 05:44
@aentinger aentinger restored the fix-230 branch January 15, 2024 05:44
@aentinger aentinger deleted the fix-230 branch January 15, 2024 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize for Debugging compiles with -0s
1 participant